{include file=header.html}
<script language="javascript" type="text/javascript" src="{res file=js/jquery-1.2.6.js}"></script>
<style type="text/css">
.page{float:left;}
</style>
<body>
<div class="sub-body">
<div class="tab_info" style="width:900px;">
<div class="tab-title-1"><span>{$lang.factory_manage}</span>
</div>
<table  width="100%"  cellspacing="0" cellpadding="0" class="tab-display" id="tab-color1">
	<tr>
		<td colspan="5" align="right" style="padding-right:50px;"><a href="{url index.php?app=factory&act=add}" class="add btn-2">{$lang.add_new_factory}</a></td>
	</tr>
      <tr>
		<th width="15%">{$lang.factory_name}</th>
		<th width="15%">{$lang.factory_type}</th>
		<th width="40%">{$lang.address}</th>
		<th width="15%">{$lang.if_show}</th>
		<th width="15%">{$lang.handle}</th>
      </tr>
	 <!--{foreach from=$factories item=factory}-->
       <tr>
        <td>{$factory.factory_name|escape}</td>
        <td>{$factory.type_name|escape}</td>
        <td>{$factory.address|escape}</td>
        <td><!--{if $factory.if_show}-->{$lang.yes}<!--{else}-->{$lang.no}<!--{/if}--></td>
		<td><a href="{url index.php?app=factory&act=edit&fid=$factory.factory_id}">{$lang.edit}</a>&nbsp; <a href="javascript:if(confirm('确认删除此工厂吗?删除工厂后对应的工厂用户将删除！')==true){location.href='{url app=factory&act=del&fid=$factory.factory_id}';};">{$lang.delete}</a></td>
      </tr>
	  <!--{/foreach}-->
    </table>
    {include file=page.html}
<script language="javascript" type="text/javascript" src="{res file=js/tab_color.js}"></script>
</div></div>
</body>
</html>